﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AtualizarDados.aspx.cs" Inherits="SFsoftSite.Cliente.AtualizarDados" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager runat="server">
    </asp:ScriptManager>
    <h1 style="padding-left:30px">
        Atualizar Dados
    </h1>
    <br />
    <br />
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <asp:HiddenField id="hf" runat="server" value=""></asp:HiddenField>
            <asp:HiddenField id="hf2" runat="server" value=""></asp:HiddenField>
            <table align="center">
                <tr>
                    <td style="padding-right:80px">
                        <img id="imgFotoCliente" runat="server" src="" alt="" />
                    </td>
                </tr>
            </table>
            <br />
            <table align="center">
                <tr>
                    <td>
                    </td>
                    <td style="text-align:right">
                        Nome:
                    </td>
                    <td style="text-align:left; padding">
                        <asp:TextBox ID="txtNome" MaxLength="255" runat="server" Width="280px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtNome"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="text-align:right">
                        Senha:
                    </td>
                    <td style="text-align:left">
                        <asp:TextBox ID="txtSenha" MaxLength="30" TextMode="Password" runat="server" Width="280px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtSenha"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="text-align:right">
                        Confirma Senha:
                    </td>
                    <td style="text-align:left">
                        <asp:TextBox ID="txtConfirmaSenha" MaxLength="30" TextMode="Password" runat="server" Width="280px"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="As senhas são diferentes!" ControlToCompare="txtSenha" ControlToValidate="txtConfirmaSenha"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="text-align:right">
                        Endereço:
                    </td>
                    <td style="text-align:left">
                        <asp:TextBox ID="txtEndereco" MaxLength="255" runat="server" Width="280px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="text-align:right">
                        Telefone: 
                    </td>
                    <td style="text-align:left">
                        <asp:TextBox ID="txtTelefone" MaxLength="10" runat="server" Width="280px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="text-align:right">
                        Foto:
                    </td>
                    <td style="text-align:left">
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td style="text-align:left; padding-left:100px">
                        <br />
                        <asp:Button ID="btnAtualizar" runat="server" Text="Atualizar" OnClick="Atualizar_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnAtualizar">
            </asp:PostBackTrigger>
        </Triggers>
    </asp:UpdatePanel>
    <br />
    <br />
</asp:Content>
